package store.wetravel.web.backend.category.mapper;

import org.springframework.stereotype.Repository;
import store.wetravel.pojo.Category;

import java.util.List;

@Repository("categoryMapper")
public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectCategoryChildrenByParentId(Integer parentId);


}